<%@ include file="/includes/includes.jsp" %>

<div id="loginContent">

    <div id="loginPanel" class="block-frame">
        <div id="loginPanel_pg1" class="top">
            <div id="loginPanel_pg2">
                <div id="loginPanel_pg3"></div>
            </div>
        </div>

        <div class="middle">
            <form:form class="block-body" method="post" commandName="user" action="/logon.do">
                <div id="header" class="block-header">
                    <label id="headerLabel"><spring:message code="login_form"/></label>
                </div>

                <div class="block-content-p">
                    <form:errors path="*" cssClass="error_block" element="div"/>
                    <table>
                        <tr>
                            <td>
                                <label id="userNameLabel" for="j_username" class="margin1"><spring:message
                                        code="userName"/></label>
                            </td>
                            <td>
                                    <form:input id="j_username" path="userName" type="text" size="20" maxlength="100"/>
                                           <%--name="${status.expression}"--%>
                                           <%--value="${status.value}">--%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label id="passwordLabel" for="j_password" class="margin1"><spring:message
                                        code="password"/></label>
                            </td>
                            <td>
                                <form:password id="j_password" path="password" size="20" maxlength="100"/>
                                <%--<spring:bind path="user.password">--%>
                                    <%--<input id="j_password" type="password" size="20" name="${status.expression}">--%>
                                <%--</spring:bind>--%>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <div id="submit" class="margin1 centerAlign">
                                    <input type="submit" id="j_submitLogin" value="<spring:message code='enter'/>"/>
                                </div>
                            </td>
                        </tr>
                        <%--<tr>--%>
                            <%--<td colspan="2">--%>
                                <%--<div id="errors" class="padding1">--%>
                                    <%--<form:errors path="*" cssClass="errorBox"/>--%>
                                        <%--&lt;%&ndash;<spring:bind path="user.*">&ndash;%&gt;--%>
                                        <%--&lt;%&ndash;<c:forEach var="error" items="${status.errorMessages}">&ndash;%&gt;--%>
                                        <%--&lt;%&ndash;<c:out value="${error}"/><br>&ndash;%&gt;--%>
                                        <%--&lt;%&ndash;</c:forEach>&ndash;%&gt;--%>
                                        <%--&lt;%&ndash;</spring:bind>&ndash;%&gt;--%>
                                <%--</div>--%>
                            <%--</td>--%>
                        <%--</tr>--%>
                    </table>
                </div>
            </form:form>
        </div>
        <div id="loginPanel_pg4" class="bottom">
            <div id="loginPanel_pg5">
                <div id="loginPanel_pg6"></div>
            </div>
        </div>
    </div>
</div>
